var base = require('../../conf.js')
Page({
  data: {
    title:'福利社',
    voucherList:[],
  },
  onLoad(){
    this.getVoucherList()
  },
  getVoucherList:function(){
    var self = this;
    wx.request({
      url: base.url + '/voucher',
      method: 'get',
      data:{},
      header: {
        "Content-Type": "application/json;charset=UTF-8",
        'userToken': base.token_Date
      },
      success: function (res) {
        console.log(res.data.data)
        self.setData({
          voucherList: res.data.data,
        })
      }
    })
  }
})